package d4_bufferstream;

import java.io.*;

public class t2character {
    public static void main(String[] args) {
        try(
                Reader isr = new FileReader("D:\\mycode\\file10\\src\\111");
                BufferedReader bis = new BufferedReader(isr);

                Writer fw = new FileWriter("D:\\mycode\\file10\\src\\111");
                BufferedWriter bw = new BufferedWriter(fw);


        ) {
//            char[] buffer = new char[3];
//            int len;
//            while((len=bis.read(buffer))>0){
//                System.out.println(new String(buffer,0,len));
//            }

//            System.out.println(bis.readLine());
//            System.out.println(bis.readLine());
//            System.out.println(bis.readLine());

            String s;
            while ((s = bis.readLine()) != null) {
                System.out.println(s);
            }

            bw.write('a');
            bw.write(49);
            bw.write('大');
            bw.write("\r\n");

            bw.write("大多数踩踩踩");

            bw.write("说法帆帆帆帆",0,4);


        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
